﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;

namespace PotatoSoft
{
    namespace VOCTS
    {
        namespace Workbench
        {
            public class WorkbenchContext : ObjectContext
            {
                public WorkbenchContext()
                    : base("name=WorkbenchEntities", "WorkbenchEntities")
                {
                    _workspaces = CreateObjectSet<Workspace>();
                    _projects = CreateObjectSet<Project>();
                    _examinations = CreateObjectSet<Examination>();
                    _images = CreateObjectSet<Image>();
                }

                private ObjectSet<Workspace> _workspaces;
                public ObjectSet<Workspace> Workspaces
                {
                    get
                    {
                        return _workspaces;
                    }
                }

                private ObjectSet<Project> _projects;
                public ObjectSet<Project> Projects
                {
                    get
                    {
                        return _projects;
                    }
                }

                private ObjectSet<Examination> _examinations;
                public ObjectSet<Examination> Examinations
                {
                    get
                    {
                        return _examinations;
                    }
                }

                private ObjectSet<Image> _images;
                public ObjectSet<Image> Images
                {
                    get
                    {
                        return _images;
                    }
                }
            }
        }
    }
}
